package com.qujia.station.service;


import com.qujia.station.domain.GoToInvoice;
import com.qujia.station.domain.PayOrder;
import com.qujia.station.domain.vo.InvoiceInfoVo;

import java.util.List;

/**
 * @Auther: zxy
 * @Date: 2023/8/8 12:31
 * @Description:
 */
public interface InvoiceService {

    /**
     *  插入小票信息
     * @param invoice  小票信息
     * @param payOrder 订单信息
     * @return
     */
    int insertInvoiceInfo(GoToInvoice invoice, PayOrder payOrder);

    /**
     * 根据订单ID获取开票信息
     * @param orderNo
     */
    InvoiceInfoVo selectInvoiceInfoByOrdNo(String orderNo);

    /**
     * 更新小票信息
     * @param invoiceInfo   旧开票的数据
     * @param invoice 前端传入的更新信息
     * @return
     */
    int updateInvoiceInfo(InvoiceInfoVo invoiceInfo ,GoToInvoice invoice);

    List<InvoiceInfoVo> getInvoiceRecords(String orderNo,String businessName);
}
